package example.algorithm.question;

import java.util.Scanner;

public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入一串字符:");
        String strIn = scanner.next();
//        System.out.println("请输入需要查找的字符：");
        String strSearch = scanner.next();
        String[] split = strIn.toLowerCase().split(strSearch.toLowerCase());
        System.out.println(split.length-1);

    }
}
